import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_table('data.txt')
df1=df.query('time>"16:00:00"').groupby('name')['amount'].describe().sort_values('mean',ascending=False)['mean']

df1.plot.bar()
# df.plot.show()
# plt.plot(df)
plt.title('title')
plt.ylabel('times')
plt.show()